EraseFile is a XCMD allowing to delete a file on a volume.
SYNTAX
EraseFile <file path|name>[,"DontResolveAlias"]
PARAMETERS
<file path|name> can be a single name or whole pathname. If just a single name is supplied, the file is assumed to be in the same folder than the current stack.
"dontResolveAlias" allows to deal with an alias file itself (System 7.0 only) rather than with the file pointed by it.
Using "!", "?" or "=" as first parameter will return an online help (resp. copyright, syntax and output).
ERRORS
The Result will be empty if the file has been deleted. If an error occurs, it can contain :
"Error : Not a file"
"Error : Not a folder"
"Error : Alias file not supported"
"Error : Volume not found"
"Error : Bad Name"
"Error : File not found"
"Error : Folder not found"
"Error : File is busy"
"Error : I/O Error"
"Error : Folder is full"
"Error : Volume is locked"
"Error : No resource fork"
"Error : Duplicate file/folder name"
"Error : Moving whole volume not allowed"
"Error : Not an AppleShare volume"
"Error : AppleShare insufficient privileges"
"Error : Missing or empty parameter(s)"
"Error : Second param can only be “DontResolveAlias”"
Free for non-commercial use. Use in commercial software subjected to prior acknowledgement and licensing from the author, reachable at the following network addresses: